-
Notifications
You must be signed in to change notification settings - Fork 1
feat: hideStep på nve-step som gjør at man kan skjule et steg #523
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
feat: hideStep på nve-step som gjør at man kan skjule et steg #523
The head ref may contain hidden characters: "522-det-er-innimellom-behov-for-\u00E5-skjule-et-steg-istedenfor-\u00E5-endre-step-listen"
Conversation
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://brave-meadow-0c645bd03-523.westeurope.5.azurestaticapps.net |
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://brave-meadow-0c645bd03-523.westeurope.5.azurestaticapps.net |
gruble
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kode og dokumentasjon så bra ut.
Kan du bare sjekke hvorfor Vue-eksemplet på hideStep ikke funker?
|
|
||
| </SandboxPreview> | ||
|
|
||
| ### Skjul bestemte steg i Vue |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Selv om jeg klikker på "Skul steg 2", vises steget fortsatt i PR-bygget.
Er det brukerfeil, feil i koden eller noe annet?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For meg vises ikke steg 2 i den automatiske genererte preview'en, altså den har "hideStep":true og er da skjult. Kan du se igjen om det fortsatt gjelder for deg?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Jeg ser også fortsatt steg 2 selvom jeg har klikket på "Skjul steget" i CodeSandboxen. Det fungerer veldig fint i eksempelet under Skjule bestemte steg, men ikke under Vue eksempler > Skjul bestemte steg i Vue. Fungerer det også der for deg @lisamarimyreneNVE?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Jeg fikk samme problem når det kjørte under vue. Har forsøkt diverse varianter uten å få det til å fungere.
I prosjektet ble det "løst" ved å bytte/endre hele komponenten når man endret innholdet.
Denne PRen legger til en property
hideStepinve-stepkomponenten som gjør at man kan skjule et steg.Endringer:
nve-stepper.component.ts: tar hensyn til hideStep i beregning av hvilket steg som er neste, forrige, osv. Videresender hideStep fra steps-kolleksjonen tilnve-stepnve-step.component.ts: Her er det lagt til en propertyhideStep. I render-metoden (horisontal og vertikal) er sjekkes det somhideSteper satt og hvis den er det så rendres ikke elementet. OppdatertehideDescrtiptionstilhideDescriptionfornve-step(den heterhideDescriptionspånve-stepper). ognve-step: Endret navn på css-klassenempty-descriptiontilstep-description-empty.